package cn.itsource.basic.mapper;

import cn.itsource.basic.query.BaseQuery;



import java.util.List;

public interface BaseMapper<T> {

    void save(T t);

    void delete(Long id);

    void update(T t);

    T loadById(Long id );

    List<T> loadAll();

    Long count(BaseQuery query);

    List<T> page(BaseQuery query);
    // 批量删除
    void allDelete(Long[] ids);
}
